package com.atguigu.tingshu.payment.service;

import com.atguigu.tingshu.model.account.RechargeInfo;
import com.atguigu.tingshu.model.order.OrderInfo;
import com.atguigu.tingshu.model.payment.PaymentInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wechat.pay.java.service.payments.model.Transaction;

/**
 * @author Petrichor
 */
public interface PaymentInfoService extends IService<PaymentInfo> {
    /**
     * 保存订单交易信息
     * @author Petrichor
     * @date 2024/1/10 16:48
     * @param orderInfo 订单信息
     * @return NULL
    **/
    void savePaymentInfo(OrderInfo orderInfo,String paymentType);

    /**
     * 保存充值订单交易信息
     * @author Petrichor
     * @date 2024/1/10 16:48
     * @param rechargeInfo 充值订单信息
     * @return NULL
     **/
    void savePaymentInfo(RechargeInfo rechargeInfo, String paymentType);
    /**
     * 更新支付信息数据的支付状态
     * @author Petrichor
     * @date 2024/1/10 20:07
     * @param transaction 支付信息
    **/
    void updatePaymentStatus(Transaction transaction);
}
